package com.cainiao.dao;

import com.cainiao.bean.Department;

/**
 * @author shkstart
 * @create 2021-04-07 16:16
 */
public interface DepartmentMapper {
    //根据id查询部门
    public Department getDepById(Integer id);

    //集合类型，嵌套结果集：根据id查询部门下的员工
    public Department getDeptByIDJoinEmp(Integer id);

    //分布查询：根据id查询部门下的员工
    public Department getDeptByIdStep(Integer id);
}
